package com.xyy.saas.payment.cores.enums;

public enum OpenPayStatusEnum {
    CREATE(1, "创建"),
    OPENING(2, "开通中"),
    SUCCESS_FM(4, "富民-成功"),
    SUCCESS_PAY_CHANNEL(6, "渠道-成功"),
    FAIL(8, "失败"),
    ;

    /**
     * 是否可以报件
     * @param status
     * @return
     */
    public static boolean canCreate(Integer status) {
        return FAIL.status.equals(status);
    }

    OpenPayStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    private Integer status;
    private String desc;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
